#!/bin/bash
DOMAIN=$2
HOSTNAME=$1
echo export STORAGE_BASE_DIR='/var/vmail'
echo export WEB_SERVER='NGINX'
echo export BACKEND_ORIG='MARIADB'
echo export BACKEND='MYSQL'
echo export VMAIL_DB_BIND_PASSWD=TEMP_VMAIL_DB_BIND_PASSWD
echo export VMAIL_DB_ADMIN_PASSWD=TEMP_VMAIL_DB_ADMIN_PASSWD
echo export MLMMJADMIN_API_AUTH_TOKEN=TEMP_VMAIL_DB_ADMIN_PASSWD
echo export MYSQL_ROOT_PASSWD="$(openssl rand -hex 32)"
echo export FIRST_DOMAIN='DOMAIN'
echo export DOMAIN_ADMIN_PASSWD_PLAIN='FUPASSWORD'
echo export USE_IREDADMIN='YES'
echo export USE_ROUNDCUBE='YES'
echo export USE_SOGO='YES'
echo export AMAVISD_DB_PASSWD=TEMP_AMAVISD_DB_PASSWD
echo export IREDADMIN_DB_PASSWD=TEMP_IREDADMIN_DB_PASSWD
echo export RCM_DB_PASSWD=TEMP_RCM_DB_PASSWD
echo export SOGO_DB_PASSWD=TEMP_SOGO_DB_PASSWD
echo export SOGO_SIEVE_MASTER_PASSWD=TEMP_SOGO_SIEVE_MASTER_PASSWD
echo export IREDAPD_DB_PASSWD=TEMP_IREDAPD_DB_PASSWD
# Mandatory end
echo "#EOF"
echo
